package PTA.javabianchengjichu2;

import java.util.Scanner;

public class ex27 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        int y = sc.nextInt();
        if(y>=1990&&y<=2050){
            if(y%4==0&&y%100!=0||y%400==0){

                System.out.println("yes");

            }else{
                System.out.println("no");
            }


        }


    }
}
